package com.sservice.service.service.impl;

import com.sservice.model.dao.PayTypeMapper;
import com.sservice.model.entity.PayType;
import com.sservice.service.service.IPayTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by suweiming on 2017/12/20.
 */

@Service
public class PayTypeServiceImpl implements IPayTypeService {
    @Autowired
    private PayTypeMapper dao;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return dao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(PayType record) {
        return dao.insert(record);
    }

    @Override
    public int insertSelective(PayType record) {
        return dao.insertSelective(record);
    }

    @Override
    public PayType selectByPrimaryKey(Integer id) {
        return dao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(PayType record) {
        return dao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(PayType record) {
        return dao.updateByPrimaryKey(record);
    }

    @Override
    public List<PayType> queryAll(PayType arg) {
        return dao.queryAll(arg);
    }
}
